import 'package:http/http.dart' as http;
import 'dart:convert' as convert;
main(List<String> args) async {
  // This example uses the Google Books API to search for books about http.
  // https://developers.google.com/books/docs/overview
  var url =
      Uri.https('www.baidu.com', '');
  // Await the http get response, then decode the json-formatted response.
  var response = await http.get(url);
  print(response.body);
  // if (response.statusCode == 200) {
  //   // var jsonResponse =
  //   //     convert.jsonDecode(response.body) as Map<String, dynamic>;
  //   // var itemCount = jsonResponse['totalItems'];
  //   print('Number of books about http: itemCount.');
  // } else {
  //   print('Request failed with status: ${response.statusCode}.');
  // }
}